# @algorithm @lc id=2105 lang=python3 weekname=biweekly-contest-60
# @title the-number-of-good-subsets


from cn.Python3.mod.preImport import *
# @test([1,2,3,4])=6
# @test([4,2,3,15])=5
class Solution:
    def numberOfGoodSubsets(self, nums: List[int]) -> int: